<div id="viewTop" class="layui-bg-cyan">
    <ul id="topNav">
        <#if auth_purview??>
            <#list auth_purview as item>
            	<#if item.level==1>
                <li><a data-topnav="${item.url}" href="${webroot}${item.url}?purview_id=${item.id}">${item.name}</a></li>
                </#if>
            </#list>
        </#if>
    </ul>
    <div class="user-info">
        <a class="index-page" href="${webroot}/index.html" target="_blank">首页</a>
        <a class="s_changeColor" href="javascript:void(0);">换肤</a>
        <a class="logout" href="${webroot}/admin/logout.html">退出</a>
    </div>
</div>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;

        //…
    });
</script>